﻿using System.Xml.Serialization;

namespace ABC.XPath.Test.Models
{
	public class RequirementType : TypeCode
	{
		private TypeCode _category;

		/// <summary>
		/// Constructs an empty RequirementType.
		/// </summary>
		public RequirementType()
		{
			// empty
		}

		/// <summary>
		/// Constructs an initial RequirementType.
		/// </summary>
		/// <param name="description">The RequirementType description.</param>
		/// <param name="id">The RequirementType id.</param>
		public RequirementType(short id, string description)
			: base(id, description)
		{
			// empty
		}

		[XmlElement("Category", Namespace = "http://emsinet.com/schemas/Order/Data")]
		[XmlIgnore]
		public TypeCode Category
		{
			get { return _category; }
			set { _category = value; }
		}
	}
}
